package com.yl.auth.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yl.auth.entity.HugongLaoren;
import com.yl.auth.entity.Yaopin;
import com.yl.auth.mapper.HugongLaorenMapper;
import com.yl.auth.mapper.HugongMapper;
import com.yl.auth.mapper.LaorenMapper;
import com.yl.auth.model.entity.Laoren;
import com.yl.auth.model.vo.LaorenVo;
import com.yl.auth.service.HugongLaorenService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yl
 * @since 2023-06-16
 */
@Service
public class HugongLaorenServiceImpl extends ServiceImpl<HugongLaorenMapper, HugongLaoren> implements HugongLaorenService {
    @Resource
    private HugongLaorenMapper hugongLaorenMapper;
    @Resource
    private LaorenMapper laorenMapper;
    @Resource
    private HugongMapper hugongMapper;

    @Override
    public Page<LaorenVo> findAllConn(Page<LaorenVo> page1, String name,String dengjiTime) {
        return hugongLaorenMapper.findAllConn(page1,name,dengjiTime);
    }



    @Override
    public void remove(Integer id) {
        hugongLaorenMapper.remove(id);
    }

    @Override
    public List<LaorenVo> getByIdList(Integer id,HugongLaoren hugongLaoren) {
        return hugongLaorenMapper.getByIdList(id,hugongLaoren);
    }

    @Override
    public List<Yaopin> getYaopin(Long id) {
        return hugongLaorenMapper.getYaopin(id);
    }

    @Override
    public List<LaorenVo> getCunyao(Integer id) {
        return hugongLaorenMapper.getCunyao(id);
    }

    @Override
    public HugongLaoren getLaoren(Long id) {
        return hugongLaorenMapper.getLaoren(id);
    }

    @Override
    public List<LaorenVo> getyaopin(Long id) {
        return hugongLaorenMapper.getyaopin(id);
    }

    @Override
    public LaorenVo getcunshang(Integer id) {
        return hugongLaorenMapper.getcunshang(id);
    }

    @Override
    public HugongLaoren getjilu(Integer id) {
        return hugongLaorenMapper.getjilu(id);
    }
}
